package top.truism.mp.controller;


import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import top.truism.mp.entity.Hr;
import top.truism.mp.service.IHrService;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author llm
 * @since 2020-10-15
 */
@RestController
@RequestMapping("/mp/hr")
public class HrController {

    @Resource
    private IHrService hrService;

    @GetMapping("/")
    public List<Hr> getHrList() {
        return hrService.list();
    }

}

